var express = require('express');
var router = express.Router();
var dataCtrl = require('../controllers/user.controller');




router.post('/',dataCtrl.create);//插入数据
router.get('/',dataCtrl.find);//查询数据
router.put('/:id',dataCtrl.update);//修改数据
router.delete('/:id',dataCtrl.remove);//删除数据
router.post('/list', dataCtrl.list);//分页
module.exports = router;
